package rad.framework.mda.generator.template.main.resources;

import java.util.*;
import org.eclipse.uml2.uml.*;
import rad.framework.mda.generator.util.*;

public class RulesProps
{
  protected static String nl;
  public static synchronized RulesProps create(String lineSeparator)
  {
    nl = lineSeparator;
    RulesProps result = new RulesProps();
    nl = null;
    return result;
  }

  public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
  protected final String TEXT_1 = "# =============================================================================" + NL + "# Use this file to specify property rules: rendered, disabled, reRender" + NL + "#" + NL + "# Format: <viewId>.<classSimpleName>.<propertyName>.rule=<constant or #{expression}>" + NL + "#\tex." + NL + "# \t\tjsf.MyEntity.Edit.MyEntity.prop1.rendered=#{myEntity.active}" + NL + "# \t\tMyEntity.prop1.rendered=false" + NL + "# =============================================================================" + NL;
  protected final String TEXT_2 = NL;

  public String generate(Object argument)
  {
    final StringBuffer stringBuffer = new StringBuffer();
    

    Model uml2Model = (Model) argument;
    stringBuffer.append(TEXT_1);
    stringBuffer.append(TEXT_2);
    return stringBuffer.toString();
  }
}
